//
//  HealthKitManage.h
//  qiJi
//
//  Created by 凤利史 on 2018/4/28.
//  Copyright © 2018年 sunrose. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <HealthKit/HealthKit.h>
@interface HealthKitManage : NSObject

@property (nonatomic, strong) HKHealthStore *healthStore;

+(id)shareInstance;

- (void)getDistance:(void(^)(double value, NSError *error))completion;

//获取步数
- (void)getStepCount:(void(^)(double value, NSError *error))completion;
/*
 *  @brief  检查是否支持获取健康数据
 */
- (void)authorizeHealthKit:(void(^)(BOOL success, NSError *error))compltion;

@end
